package com.hetongxue.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Accessors;

/**
 * @Description: 自定义状态码
 * @EnumNmae: CustomStatusCode
 * @Author: 何同学
 * @DateTime: 2022-03-21 23:12
 **/
@AllArgsConstructor
@Getter
@Accessors(chain = true)
public enum ResponseInfo {

    SUCCESS(200, "请求成功"),
    FAIL(400, "请求失败"),
    NOT_FOUNT(404, "页面不存在"),
    ERROR(500, "服务器错误"),
    VERIFY_SUCCESS(200, "验证码正确"),
    VERIFY_ERROR(200, "验证码错误");

    private final Integer code;
    private final String message;

}
